package com.wudl.juc;

/**
 * @author ：wudl
 * @date ：Created in 2021-11-28 23:49
 * @description：
 * @modified By：
 * @version: 1.0
 */

public class MyRunnable implements  Runnable{
    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName()+"线程名称");
        }
    }

    public static void main(String[] args) throws InterruptedException {

        Thread thread = new Thread(new MyRunnable());
        thread.run();
//        thread.join();
        System.out.println("main线程 - 执行完成");

    }
}
